<template>
  <el-table v-loading="loading" :data="infoList" border header-cell-class-name="bg-F4F8FF">
    <el-table-column type="index" width="55" align="center"  label="序号"/>
    <el-table-column label="监督文书类型" align="center" prop="documentType">
      <template slot-scope="scope">
        <dict-tag :options="dict.type.document_type" :value="scope.row.documentType"/>
      </template>
    </el-table-column>
    <el-table-column label="状态" align="center" prop="docStatus">
      <template slot-scope="scope">
        {{scope.row.docStatus?'已整改':'待整改'}}
      </template>
    </el-table-column>
    <el-table-column label="下达时间" align="center" prop="createTime" />
  </el-table>

  <!--<pagination
    v-show="total>0"
    :total="total"
    :page.sync="queryParams.pageNum"
    :limit.sync="queryParams.pageSize"
    @pagination="getList"
  />
-->
</template>

<script>
import { getDocumentList } from '@/api/zhangping/publicPlace'
export default {
  name: 'jdwsTable',
  dicts: ['document_type'],
  data() {
    return {
      // 遮罩层
      loading: false,
      // 总条数
      total: 0,
      // 列表
      infoList: [],
      // 查询参数
      queryParams: {
        pageNum:1,
        pageSize:10,
      },
    };
  },
  created() {
    this.getList()
  },
  methods :{
    getList(){
      getDocumentList({
        creditCode:'77889900015'
      }).then(res=>{
        this.infoList = res.rows
      })
    },
    handleInfo(row) {
    },
  }

}
</script>

<style>

</style>
